package io.zhoujie.modules.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.google.gson.JsonObject;
import io.zhoujie.modules.app.entity.AppActiveEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AppActiveDao extends BaseMapper<AppActiveEntity> {
    List<AppActiveEntity> queryByStatus(@Param("status") Integer status);

    int insertActiveByUid(@Param("userId") Integer userId, @Param("activeId") Integer activeId);

    Map<Object,Object> selectActiveInfo(Integer userId,Integer activeId);

    List<AppActiveEntity> selectListActiveByUser(Integer userId);

    int deleteByActive(Integer userId, Integer activeId);
}
